package com.novasoftware.novagooglemap.framework.util;

import android.app.Activity;
import android.content.Intent;

public class ImageHelper {
	
	public static void OpenCategory(Activity baseActivity)
	{
		Intent getImage = new Intent(Intent.ACTION_GET_CONTENT);
		getImage.addCategory(Intent.CATEGORY_OPENABLE);
		getImage.setType("image/jpeg");
		baseActivity.startActivityForResult(getImage, 0);
	}
	
	public static void OpenCamera(Activity baseActivity)
	{
		Intent getImageByCamera  = new Intent("android.media.action.IMAGE_CAPTURE");  
		baseActivity.startActivityForResult(getImageByCamera, 1);  
	}
}
